# Contributor: Andrey Pustovetov <andrey.pustovetov@gmail.com>
# Maintainer: Andrey Pustovetov <andrey.pustovetov@gmail.com>
pkgname=jattach
pkgver=2.0
pkgrel=0
pkgdesc="JVM dynamic attach utility"
url="https://github.com/apangin/jattach"
arch="all"
license="Apache-2.0"
options="!check" # upstream doesn't have a test suite
source="$pkgname-$pkgver.tar.gz::https://github.com/apangin/jattach/archive/v$pkgver.tar.gz"

build() {
	make
}

package() {
	mkdir -p "$pkgdir"
	install -Dm0755 "$builddir/build/$pkgname" "$pkgdir/usr/bin/$pkgname"
}

sha512sums="
547d1653de9737baa9e1ca58b9aed5e55bb6c2071ec8e4af6e47deeaefa9c2e5531522dd481614dbc5dbe6a17bee0ac4820b74ad48e53f6f1494e434969f9c62  jattach-2.0.tar.gz
"
